<?php
namespace app\admin\controller;

use app\BaseController;

use think\facade\View;

class Widgets extends BaseController
{
    public function initialize()
    {
        define('ISPJAX', request()->isPjax());
        $data = [
            'title' => '数据库值title',
            'sex' => '0',
            'switchs' => '1',
            'flag' => 'j,p,h',
            'content' => '哈哈哈哈哈哈哈',
            'birthday'  => '1116723511',
            'birthday2' => '1116723511',
            'birthday3' => '1116723511',
            'birthday4' => '1116723511',
        ];
        View::assign('data', $data);
    }
    
    public function widgetInput()
    {
        return View::fetch();
    }
    
    public function widgetSelect()
    {
        return View::fetch();
    }
    
    public function widgetTextarea()
    {
        return View::fetch();
    }
    
    public function widgetCheckbox()
    {
        return View::fetch();
    }
    
    public function widgetRadio()
    {
        return View::fetch();
    }
    
    public function widgetFileUpload()
    {
        return View::fetch();
    }
    
    public function widgetDate()
    {
        return View::fetch();
    }
    
    public function widgetContent()
    {
        return View::fetch();
    }
    
    public function widgetText()
    {
        return View::fetch();
    }
    
    public function widgetSwitchs()
    {
        return View::fetch();
    }
}